package com.frank.oss.adapter;

import com.frank.oss.eneity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2024/2/2 13:47
 * @description
 */
public class AliCloudStorageAdapter implements StorageAdapter {

    @Override
    public void createBucket(String bucketName) throws Exception {

    }

    @Override
    public void uploadFile(MultipartFile multipartFile, String bucketName, String objectName) throws Exception {

    }

    @Override
    public List<String> listBuckets() throws Exception {
        List<String> buckets = new ArrayList<>();
        buckets.add("Ali cloud oos");
        return buckets;
    }

    @Override
    public List<FileInfo> getAllObjects(String bucketName) throws Exception {
        return null;
    }

    @Override
    public InputStream download(String bucket, String objectName) throws Exception {
        return null;
    }

    @Override
    public void deleteBucket(String bucketName) throws Exception {

    }

    @Override
    public void deleteObject(String bucketName, String objectName) throws Exception {

    }

    @Override
    public String getUrl(String bucketName, String name) {
        return null;
    }
}
